<?
//引入所有子系统信息
include_once("../../../common/model/extender_import.php");
//引入系统设置
include_once("../../../common/model/setting.php");

$_plate=$plate['task'];

//获取板块的设置
include_once("model/setting.php");


//根据页面数量信息，筛选信息，创造url，供页码使用
include_once("script/set_url.php");


//获取板块设置信息
$setting = select_one_line_all_items($table_Prefix."task_setting","nid = '1'");

//获取员工信息 拼接成符合多选框数据格式的JSON
$employee = select_lines_all_items($table_Prefix . "employee", "nid desc", "status = '在职' ","");
$key1 = 'id';
$key2 = 'name';
//拼接数据
$result = array_map(function($item) use ($key1, $key2) {
    return [$key1 => $item['nid'], $key2 => $item[$key2]];
}, $employee);
//转换成JSON
$employee = json_encode($result,JSON_UNESCAPED_UNICODE);
?>








